﻿using System.ComponentModel.Composition;
using IntoNails.Infrastructure;
using IntoNails.Infrastructure.Views.Attributes;
using IntoNails.Modules.CategoryManagement.ViewModels;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Windows.Controls.Ribbon;

namespace IntoNails.Modules.CategoryManagement.Views
{
    /// <summary>
    /// Interaction logic for CategoryRibbonTabView.xaml
    /// </summary>
    [ViewExport(RegionName = RegionNames.RibbonRegion)]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public partial class CategoryRibbonTabView : RibbonTab
    {
        public CategoryRibbonTabView()
        {
            InitializeComponent();
        }

        [Import]
        public ICategoryRibbonTabViewModel ViewModel
        {
            get { return this.DataContext as ICategoryRibbonTabViewModel; }
            set { this.DataContext = value; }
        }
    }
}
